package com.jianneng.jdg.model.homeactivity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.TextView;
import android.widget.Toast;

import com.example.com.jianneng.jdg.R;
import com.jianneng.jdg.model.view.SearchDevicesView;

public class CheckPeopleActivity extends BaseActivity implements OnClickListener{
	private SearchDevicesView search_people_view;
	private TextView tv_checkpeople_back,tv_checkpeople_freshen;
	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);  
        setContentView(R.layout.activity_checkpeople);
        initView();
       
        
      
    }
    

	private void initView() {
		
		 search_people_view= (SearchDevicesView) findViewById(R.id.search_people_view);
		 search_people_view.setWillNotDraw(false);
		 tv_checkpeople_back=(TextView) findViewById(R.id.tv_checkpeople_back);
		 tv_checkpeople_freshen=(TextView) findViewById(R.id.tv_checkpeople_freshen);
		 
		 tv_checkpeople_freshen.setOnClickListener(this);
	}
	@Override
	protected void onStart() {
		super.onStart();
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		return true;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {		
		return super.onOptionsItemSelected(item);
	}

	@Override
	public boolean onPrepareOptionsMenu(Menu menu) {
		return super.onPrepareOptionsMenu(menu);
	}
	@Override
	public void onClick(View v) {
		
		switch (v.getId()) {
		case R.id.tv_checkpeople_freshen:
			search_people_view.setSelected(false);
			break;

		default:
			break;
		}
	}
	

}
	


